/*
 * @Description: file content
 * @Author: Wenmin He
 * @Date: 2021-06-25 00:10:41
 * @LastEditors: Wenmin He
 * @LastEditTime: 2021-06-25 03:40:05
 */
import request from "../../../common/request"
export default async function (e) {
  let data = await $page.widgets.uuid_c81b3d83.validate()
  let url = $page.state.title == '广西中小学学籍信息查询' ? '/zgt/cjcx/zx' : '/zgt/cjcx/zz'
  let title = $page.state.title == '广西中小学学籍信息查询' ? '中小学学籍信息' : '中职学籍信息'
  console.log(data, url)
  request({
    url,
    method: 'GET',
    data: {
      ...data,
      title,
    },
  }).then(rs => {
    app.navigateTo({
      pageId: 'studentDetail',    // 页面 Id 
      params: {rs:rs,title:$page.state.title}
    });
  })
}